﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using My.Admin.Repository;
using My.Core.Options;
using My.Framework;
using My.Framework.AspNetCore;
using SqlSugar;
using SqlSugar.IOC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yitter.IdGenerator;


namespace My.Core.Startup
{
	public class EndStartup : StartupModule<EndStartup>
	{
		/// <summary>
		/// 程序启动器
		/// </summary>
		public EndStartup() => Order = 999;

		/// <summary>
		/// 
		/// </summary>
		/// <param name="webApplicationBuilder"></param>
		public override void ConfigureServices(WebApplicationBuilder webApplicationBuilder)
		{
			
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="webApplication"></param>
		public override void Configure(WebApplication webApplication)
		{
			// 开启响应缓存中间件
			// 使用CORS中间件时，必须在UseResponseCaching之前调用UseCors。
			webApplication.UseResponseCaching();

			webApplication.MapControllers();
		}
	}
}
